<?php
// +----------------------------------------------------------------------
// | Iecms [ Make the most exquisite CMS ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009~2019 http://www.iemoo.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: iemoo <i@iemoo.com>
// +----------------------------------------------------------------------
// | DateTime: 2019/11/19 11:08
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

/**
 * 验证器
 * @package app\admin\validate
 */
class Page extends Validate
{
    protected $rule = [
        'title'		=> 'require|max:200',
		'name'		=> 'require|alphaNum|max:100',
        'status'	=> 'require|in:0,1'
    ];

    protected $message = [
        'title.require'			=> '请输入标题',
		'title.max'				=> '标题过长',
		'name.require'			=> '请输入英文目录名',
		'name.alphaNum'			=> '英文名只能为字母和数字',
		'name.max'				=> '英文目录名过长',
        'status.require'		=> '请选择状态',
		'status.in'			=> '状态不正确'
    ];

}